package cn.tedu.project.controller;

import cn.tedu.project.entity.DogFood;
import cn.tedu.project.mapper.DogFoodMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DogFoodController {
    @Autowired(required = false)
    DogFoodMapper mapper;
    @RequestMapping("/select")
    public List<DogFood> select(){
        return mapper.select();
    }

}
